using UnityEngine;

namespace RGuang.PlathformCtrl
{

    public class Spike
        : MonoBehaviour
    {
        void OnTriggerEnter(Collider collider)
        {
            if(collider.TryGetComponent(out PlayerController player))
            {
                player.OnDefeated();
            }
        }

    }
}

